﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeaderTrainPrint.aspx.cs"
    Inherits="GH.Web.UionReport.LeaderTrainPrint" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>各级工会组织、专职工会干部、工会干部培训统计打印</title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #tabCard th
        {
            background-color: #B2DBF7;
            height: 24px;
        }
        #tabCard td
        {
            background-color: #FFFFFF;
            height: 24px;
            text-align: left;
        }
    </style>
    <link rel="stylesheet" type="text/css" href="/css/jquery-ui-1.7.2.custom.css" />
    <link rel="stylesheet" type="text/css" href="../JqueryUI/themes/ui-lightness/jquery-ui-1.7.2.custom.css" />

    <script type="text/javascript" src="../javascript/jquery-1.3.2.js"></script>

    <script type="text/javascript" src="../javascript/jquery-ui-1.7.2.custom.js"></script>

    <script type="text/javascript" src="../javascript/messageBox.js"></script>

    <script type="text/javascript" src="../javascript/formValidator.js"></script>

    <script type="text/javascript" src="../javascript/formValidatorRegex.js"></script>

    <script type="text/javascript" src="../javascript/Public.js"></script>

    <script language="javascript">
        function printpreview() {// 打印页面预览
            dPrint.style.display = 'none';
            //tabCard.border = "1";
            wb.ExecWB(8, 1);
            wb.ExecWB(7, 1);
            //window.print();
            dPrint.style.display = 'block';
            //tabCard.border = "0";
        }

        function SetPrintSettings() {//控制"纵打、 横打、页面的边距"。

            // -- advanced features
            factory.printing.SetMarginMeasure(2)  // measure margins in inches
            factory.SetPageRange(false, 1, 3)    // need pages from 1 to 3

            factory.printing.printer = "Panasonic KX-P1121"
            factory.printing.copies = 2
            factory.printing.collate = true
            factory.printing.paperSize = "A4"
            factory.printing.paperSource = "Manual feed"

            // -- basic features
            factory.printing.header = false
            factory.printing.footer = false
            factory.printing.portrait = false
            factory.printing.leftMargin = 1.0
            factory.printing.topMargin = 1.0
            factory.printing.rightMargin = 1.0
            factory.printing.bottomMargin = 1.0
        }
        
    </script>

    <script type='text/javascript'>
        $(document).ready(function() {

            SetReportIndex();
            function SetReportIndex() {
                var intRow = -2;
                $("#tabShow>tbody>tr").each(function(i, item) {
                    //跳过顶上的两行标题头
                    if (i > 0) {
                        //序号重新排序
                        $(this).find("td:eq(0)").text(intRow);
                        intRow++;
                    }
                })


            }
        });
    </script>

</head>
<body>
    <center>
        <table width="width: 600px" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <div id='dPrint' style="text-align: right">
                        <img id="btnPrint" alt="打印" src="../Images/button/btnPrint.gif" onclick="printpreview();" />
                        <object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" id="wb" name="wb" height="0"
                            width="0">
                        </object>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <h3>
                        <asp:Label ID="lbltheYear" runat="server" />年度工会组织建设统计表3—各级工会组织、专职工会干部、工会干部培训统计
                    </h3>
                    <asp:Repeater ID="rptList" runat="server">
                        <HeaderTemplate>
                            <table id="tabShow" style="width: 100%; background-color: Silver" cellpadding="0px"
                                cellspacing="0px" border="1">
                                <!--<thead style="text-align:center;" >-->
                                <tr>
                                    <th rowspan="2" style="background-color: #B2DBF7" colspan="2">
                                    </th>
                                    <th rowspan="2" style="background-color: #B2DBF7">
                                        所属基层分工会数
                                    </th>
                                    <th style="background-color: #B2DBF7" colspan="4">
                                        其 中
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7" rowspan="2">
                                        所属基层工会小组数
                                    </th>
                                    <th style="background-color: #B2DBF7" colspan="4">
                                        其 中
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7" rowspan="2">
                                        专职工会干部数（含控股代管县级供公司专职工会干部）
                                    </th>
                                    <th style="width: 100px; background-color: #B2DBF7" colspan="2" rowspan="2">
                                        当年各级工会举办工会干部、积极分子业务培训班次数以及培训人次
                                    </th>
                                    <th style="width: 100px; background-color: #B2DBF7" colspan="2" rowspan="2">
                                        当年专职工会干部参加业务培训人数以及专职工会干部年度培训率
                                    </th>
                                </tr>
                                <tr>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        省公司所属企业分工会数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        省公司控股代管县级供电公司分工会数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        多经企业分工会数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        企业聘用各类劳务人员分工会数
                                    </th>
                                    <%--<th style="width: 50px; background-color: #B2DBF7">
                                            所属基层工会小组数</th>--%>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        省公司所属企业工会小组数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        省公司控股代管县级供电公司工会小组数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        多经企业工会小组数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        企业聘用各类劳务人员工会小组数
                                    </th>
                                </tr>
                                <!--</thead>-->
                                <!--<tbody id='content'>-->
                                <!--</tbody>-->
                                <tr style="height: 0px">
                                    <th style="width: 40px; background-color: #B2DBF7">
                                    </th>
                                    <th style="background-color: #B2DBF7">
                                    </th>
                                    <th style='display: none'>
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                </tr>
                            </table>
                            <table id="tabShow" style="width: 100%; background-color: Silver" cellpadding="0px"
                                cellspacing="0px" border="1">
                                <!--<thead style="text-align:center;" >-->
                                <tr>
                                    <th style="width: 40px; background-color: #B2DBF7">
                                        序号
                                    </th>
                                    <th style="background-color: #B2DBF7">
                                        单位
                                    </th>
                                    <th style='display: none'>
                                        单位
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        1
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        2
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        3
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        4
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        5
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        6
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        7
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        8
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        9
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        10
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        11
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        12-1<br />
                                        班次
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        12-2<br />
                                        人次
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        13-1<br />
                                        人数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        13-2<br />
                                        百分率
                                    </th>
                                </tr>
                                <!--</thead>-->
                                <!--<tbody id='content'>-->
                                <!--</tbody>-->
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td style="background-color: #FFFFFF" align="center">
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "单位名称")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "所属基层分工会数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "省公司所属企业分工会数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "省公司控股分工会数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "分工会数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "劳务人员分工会数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "所属基层工会小组数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "省公司所属工会小组数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "省公司控股工会小组数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "工会小组数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "劳务人员工会小组数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "专职工会干部数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "培训班次")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "培训人次")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "年度培训人数")%>&nbsp;
                                </td>
                                <td style="background-color: #FFFFFF" align="center">
                                    <%# (DataBinder.Eval(Container.DataItem, "年度培训率").ToString() == "") ? null : (DataBinder.Eval(Container.DataItem, "年度培训率").ToString() + "%")%>&nbsp;
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
    </center>
</body>
</html>
